/**
 * @Author: bask
 * @Date: 2022/3/21 16:00
 */
public class Charging {
    public String money(long minute) {
        double money = 0;
        if(minute>1800 || minute <=0){
            return "通话时间输入错误，请重新输入。";
        }else{
            if(minute<=20)
                money = minute*0.05;
            else
                money = 1+(minute-20)*0.1;
        }
        String res = String.format("%.2f", money);
        return res;
    }
}
